package client;

import gui.Answers_GUI;
import gui.Survey_GUI;

import java.io.Serializable;

public class Answers implements Serializable{
	
	int Aid=-1;
	int Sid=-1;
	Integer Q[]=new Integer [6];
	
	public Answers(int sid,Integer []Q)
	{
		this.Aid=-1;
		this.Sid=sid;
		this.Q=Q;
		this.saveAnswers();
	}

	public void saveAnswers()
	{
		ObjHandle.sendToServer(this);
		Survey_GUI.feedflag=(Integer) Main.clie.getResult();
	}

	public int getAid()
	{return Aid;}
	
	public int getSid()
	{return Sid;}
	
	public Integer[] getQ()
	{return Q;}

	public static void getSurveyAnswers(String[] sn)
	{
	    ObjHandle.sendToServer(sn);
		
		//Survey_GUI.data=new Object[][7];
	    
		Answers_GUI.data= (Object[][]) Main.clie.getResult();
	}
	
}
